package com.aracky.system.service.impl;

import com.aracky.common.util.ComUtil;
import com.aracky.system.model.entity.SysDept;
import com.aracky.system.mapper.SysDeptMapper;
import com.aracky.system.service.SysDeptService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 部门表 服务实现类
 * </p>
 *
 * @author zzp
 * @since 2022-07-15 10:54:16
 */
@Service
public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> implements SysDeptService {

    @Override
    public void saveWxDept(List<SysDept> sysDeptList) {
        if(ComUtil.isNullList(sysDeptList)){
            return;
        }
        this.saveOrUpdateBatch(sysDeptList);
    }
}
